package com.cn.web.menu.vo;

import com.cn.menu.ButtonsDO;
import com.cn.menu.MenuDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * description: MenuVO <br>
 * date: 21.12.16 11:15 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "菜单view")
public class MenuVO extends MenuDO {

    @ApiModelProperty(value = "菜单层级")
    private int level = 1;

    @ApiModelProperty(value = "功能按钮")
    private List<ButtonsDO> buttonArray = new ArrayList<>();

    @Override
    public MenuDO setButtons(String buttons) {
        return super.setButtons(buttons);
    }


    @ApiModelProperty(value = "子菜单")
    private List<MenuVO> child;


}
